﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BFlatCompile.Nodes
{
	public class Increment : Expression
	{
		public Expression Expression { get; private set; }
		public bool IsPrefix { get; private set; }
		public int Sign { get; private set; }
		public Token Token { get; private set; }

		public Increment(Expression expression, int sign, bool prefix, Token token)
		{
			this.Expression = expression;
			this.Sign = sign;
			this.IsPrefix = prefix;
			this.Token = token;
		}

		public override void ResolveCode(Class c, Dictionary<object, object> parents)
		{
			this.Expression.ResolveCode(c, parents);
		}

		public override void ResolveClassToThis(Class c)
		{
			this.Expression.ResolveClassToThis(c);
		}
	}
}
